#!/bin/bash
  
export IMAGE_NAME="my/redis"
export CONTAINER_NAME="my-redis"
export SERVER_PORT=6378

docker build -t $IMAGE_NAME .

sleep 3

docker run -d --name $CONTAINER_NAME \
   --restart=always \
	 -p $SERVER_PORT:6379 \
	  -v $PWD/data/:/data/ \
	   -v $PWD/redis.conf:/usr/local/etc/redis/redis.conf \
	    $IMAGE_NAME
